import React from 'react'
import { renderToStaticMarkup } from 'react-dom/server';
import format from 'lib/util/format'

export default function createItemTip(item){
  return renderToStaticMarkup(
    <div>
      <h5>{item.name}</h5>
      <p>错误率：{item.fmtVal}</p>
      <p>错误次数：{item.pointData.error_count}</p>
      <p>总请求次数：{item.pointData.total_count}</p>
    </div>
  )
}
